﻿/*  ----------------------------------------------------------------------------
 *  DES-Release 2
 *  ----------------------------------------------------------------------------
 *  File:       Credential.cs
 *  Author:     nitinkoshy@gmail.com
 *  Source:     http://des.codeplex.com/
 *  ----------------------------------------------------------------------------
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.Security.Principal;

namespace DES.Common
{
    [DataContract]
    public class Credential
    {
        private string _userName;
        private string _passWord;
        private string _domain;

        [DataMember]
        public string UserName
        {
            get
            {
                return _userName;
            }
            set
            {
                _userName = value;
            }
        }
        [DataMember]
        public string Password
        {
            get
            {
                return _passWord;
            }
            set
            {
                _passWord = value;
            }
        }
        [DataMember]
        public string Domain
        {
            get
            {
                return _domain;
            }
            set
            {
                _domain = value;
            }
        }

        public Credential(string userName, string password, string domain)
        {
            _userName = userName;
            _passWord = password;
            _domain = domain;
        }

        public Credential():this(String.Empty, String.Empty, String.Empty)
        {

        }
    }
}
